﻿using System;
using System.ServiceModel.Channels;

namespace RockBus.ServiceBus
{
    public class ServiceBusException : EventArgs
    {
        public ServiceBusException(Message requestMessage, Message exceptionMessage)
            : base()
        {
            this.RequestMessage = requestMessage;
            this.ExceptionMessage = exceptionMessage;
        }

        public Message RequestMessage { get; set; }

        public Message ExceptionMessage { get; set; }
    }
}